package com.spn.blog.article.component.rocketmq;

import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ArticleToESProducer {
    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    public SendResult syncSendOrderly(String topic, Object message, String id){
        return rocketMQTemplate.syncSendOrderly(topic, message, id);
    }
}
